//
// Created by bigknife on 14-9-10.
// Copyright (c) 2014 51fmzg. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class IDLTableView;
@protocol IDLTableViewDelegate<UITableViewDelegate>
@optional
-(void)refreshForTableView:(IDLTableView *)tableView;
-(void)loadMoreForTableView:(IDLTableView *)tableView;
-(UIView *) emptyViewOfTableView:(IDLTableView *)tableView;
@end
@protocol IDLTableViewDataSource<UITableViewDataSource>

@end


@interface IDLTableView : UITableView
@property (weak, nonatomic) id<IDLTableViewDelegate> delegate;
@property (weak, nonatomic) id<IDLTableViewDataSource> dataSource;

@property (strong, nonatomic) UIView *ddrNormalView;
@property (strong, nonatomic) UIView *ddrLoadingView;
@property (strong, nonatomic) UIView *ddrConfirmView;

@property (strong, nonatomic) UIView *pumNormalView;
@property (strong, nonatomic) UIView *pumLoadingView;
@property (strong, nonatomic) UIView *pumConfirmView;

@property (nonatomic) BOOL ddrDisabled;
@property (nonatomic) BOOL pumDisabled;

-(void)startRefresh;
/**
* 完成刷新或者加载更多
*/
-(void)completeLoading;




@end


